﻿using Quartz;
using System.Collections.Concurrent;

namespace ZYing.QPanel.Impl
{
    public partial class InProcExecutionHistoryStore
    {
        private class JobNodeCollection : ConcurrentDictionary<JobKey, NodeCollection>
        {
            public NodeCollection Get(JobKey key)
            {
                return this.GetOrAdd(key, CreateCollection);
            }
            private static NodeCollection CreateCollection(JobKey key)
            {
                return new NodeCollection();
            }
        }
    }
}
